package com.ruoyi.yljf.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BasePlusEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 课件对象 yljf_courseware
 * 
 * @author metaee
 * @date 2025-04-26
 */
@Data
@TableName(value = "yljf_courseware")
public class Courseware  {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 课程id */
    @Excel(name = "课程id")
    private Long courseId;

    /** 课程章节id（冗余字段） */
    @Excel(name = "课程章节id", readConverterExp = "冗=余字段")
    private Long packageId;

    /** 课件 */
    @Excel(name = "课件")
    private String courseware;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long browseNum;

    /** 页数 */
    @Excel(name = "页数")
    private Long pageNums;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private String fileSize;

    /** 收藏量 */
    @Excel(name = "收藏量")
    private Long collectNum;

    /** 创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /** 文档名称 */
    @Excel(name = "文档名称")
    private String fileName;
}
